function toLowerCaseFirstChar(text){
    if(text.lenght === 0) return text;

    return text.substring(0,1).toLowerCase() + text.substring(1);
  }

  function toUpperCaseFirstChar(text){
    if(text.lenght === 0) return text;

    return text.substring(0,1).toUpperCase() + text.substring(1);
  }

function toLowerCamelCase(text, patterns = ['.','-','_']){
    for (let element of patterns) {
      let words = text.split(element);
      console.log(words);
      if(words.length > 0){
        text = words.map((element, index) => index === 0 ? toLowerCaseFirstChar(element) : toUpperCaseFirstChar(element)).join('');
      }
    }
    return text;
}